package edu.pku.sei.act.codegen.getinfor;

import edu.pku.sei.act.model.mote.Radio;
import edu.pku.sei.act.mote.myenum.YNEnum;

public class RadioForCode {
	private YNEnum radio;
	
	public RadioForCode(Radio radio){
		this.radio = radio.getRadio();
	}
	public boolean getRadio(){
		boolean r ;
		if(this.radio == YNEnum.Yes){
			r=true;
		}else{
			r=false;
		}
		
		return r;
	}
	
}
